package open.witype.filetiper.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

/**
 * Created by Typer on 2015/6/1 0001.
 */
public abstract class BaseDBAdapter {

    public DBHelper helper;

    public SQLiteDatabase database;

    public BaseDBAdapter(Context context) {
        helper = new DBHelper(context);
    }

    public SQLiteDatabase open() {
        return database = helper.getWritableDatabase();
    }

    public void close(){
        helper.close();
    }
}
